.box {
  width: 100%;
  min-width: 320px;
  margin: 0 auto;
  background-color: red;
  padding: 20px;
  color: #fff;
}
.box .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.box ul {
  overflow: hidden;
}
.box ul li {
  float: left;
  width: 25%;
  padding: 5px;
}
.box ul li a {
  display: block;
}
.box ul li a img {
  display: block;
  width: 100%;
}
@media all and (min-width: 760px) and (max-width: 1024px) {
  .box {
    background-color: green;
  }
  .box ul li {
    width: 33.333%;
  }
}
@media all and (min-width: 520px) and (max-width: 760px) {
  .box {
    background-color: blue;
  }
  .box ul li {
    width: 50%;
  }
}
@media all and (max-width: 520px) {
  .box {
    color: #000;
    background-color: yellow;
  }
  .box ul li {
    width: 100%;
  }
}
